package com.park.service.impl.question;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.question.QuestionOperationModel;
import com.park.client.service.question.QuestionOperationService;
import com.park.dao.question.QuestionOperationMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("questionOperationService")
public class QuestionOperationServiceImpl extends BaseServiceImpl<QuestionOperationModel> implements QuestionOperationService {
	
	@Autowired
	private  QuestionOperationMapper  questionOperationMapper;

	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return questionOperationMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(QuestionOperationModel record) {
		return questionOperationMapper.insertSelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKeySelective(QuestionOperationModel record) {
		return questionOperationMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(QuestionOperationModel record) {
		return questionOperationMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean insert(QuestionOperationModel record) {
		return questionOperationMapper.insert(record)==1;
	}
	@Override
	public QuestionOperationModel selectByPrimaryKey(Long id) {
		return questionOperationMapper.selectByPrimaryKey(id);
	}
	@Override
	public QuestionOperationModel selectByOperation(QuestionOperationModel record) {
		return questionOperationMapper.selectByOperation(record);
	}
	

}
